package org.sjs.dreamfly.browser.jsbridge

import android.webkit.JavascriptInterface
import org.sjs.dreamfly.common.util.LogUtil

object JsBridge {
    @JavascriptInterface
    fun callNative(method: String, params: String) {
        LogUtil.d("method:$method")
        JsCallMethodImpl.javaClass.getMethod(method, params.javaClass)?.invoke(JsCallMethodImpl, params)
    }
}